<?php

class photosActions extends sfActions
{

	public function executeGallery()
	{
        $parentId = (int)$this->getRequestParameter('id', 0);

        if( $parentId )
            $this->arBranch = Tree::getTree($parentId);
        else
            $this->arBranch = Tree::getTreeByLabel('photos');
	}

}

?>